package com.nuo.quartz.serve.runner;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.nuo.common.quartz.core.service.JobRunnerService;
import com.nuo.quartz.serve.mapper.QuartzJobDOMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 时间打印任务
 *
 * @author LGC
 */
@Slf4j
@Component("printTimeJob")
public class PrintTimeJobImpl implements JobRunnerService {
    @Resource
    private QuartzJobDOMapper quartzJobMapper;

    @Override
    public void run(String param) {
        log.info("现在时间:{}", DateUtil.now());
    }
}
